/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package iie.tools;

import cn.ac.iie.di.ban.nmpp.metastore.MetaStoreManager;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.log4j.Logger;

/**
 *
 * @author xiaoliang
 */
public class CstQC {
    private static Logger logger = Logger.getLogger(MetaStoreManager.class.getName());
    private String topic;
    private Map<String,String> qcNames = new HashMap<String, String>();
    private List<String> ycloumeNames;
    private List<String> pcolumnNames;
    
     
    public CstQC(String topic, List<String> ycloumeNames, List<String> pcolumnNames) {
        this.topic = topic;
        this.ycloumeNames = ycloumeNames;
        this.pcolumnNames = pcolumnNames;
        if(ycloumeNames.size() != pcolumnNames.size()){
            logger.error("QC cloume error");
        }
         for(int y=0;y<ycloumeNames.size();y++){
             qcNames.put(ycloumeNames.get(y), pcolumnNames.get(y));
         }
    
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public Map<String, String> getQcNames() {
        return qcNames;
    }

    public void setQcNames(Map<String, String> qcNames) {
        this.qcNames = qcNames;
    }

    public List<String> getYcloumeNames() {
        return ycloumeNames;
    }

    public void setYcloumeNames(List<String> ycloumeNames) {
        this.ycloumeNames = ycloumeNames;
    }

    public List<String> getPcolumnNames() {
        return pcolumnNames;
    }

    public void setPcolumnNames(List<String> pcolumnNames) {
        this.pcolumnNames = pcolumnNames;
    }

    @Override
    public String toString() {
        return "CstQC{" + "topic=" + topic + ", qcNames=" + qcNames + ", ycloumeNames=" + ycloumeNames + ", pcolumnNames=" + pcolumnNames + '}';
    }

   
   
}
